// ReaderUser.java - 读者用户类（关联Reader实体）
package com.library.entity;

public class ReaderUser extends User {
    private Reader reader; // 关联Reader实体

    public ReaderUser(String username, String password, String email, Reader reader) {
        super(username, password, email, UserRole.READER);
        this.reader = reader;
    }

    public Reader getReader() { return reader; }
    public void setReader(Reader reader) { this.reader = reader; }
}